/**
 * 启动文件
 */
// import React from "react";
import ReactDOMClient from "react-dom/client";
// import "@ant-design/v5-patch-for-react-19";
import "vendor/utils/polyfill/addResizeEventForElement";
import App from './App';

const root = ReactDOMClient.createRoot(document.querySelector<HTMLElement>('#wrapper'))

/**
 * 渲染程序
 */
const render = () => {
    root.render(<App />);
}

render();

// try {
//     // 监听webpack热替换(HRM)
//     if (module.hot) {
//         module.hot.accept("./App", () => {
//             render();
//         });
//     }
// }catch (e){}
